<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cube for iOS: CHook类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cube for iOS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('interface_c_hook.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="interface_c_hook-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CHook类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>事件钩子。  
 <a href="interface_c_hook.html#details">更多...</a></p>

<p><code>#import &lt;<a class="el" href="_c_hook_8h_source.html">CHook.h</a>&gt;</code></p>
<div class="dynheader">
类 CHook 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_c_hook.png" usemap="#CHook_map" alt=""/>
  <map id="CHook_map" name="CHook_map">
<area href="interface_c_instantiate_hook.html" title="实例化消息钩子。" alt="CInstantiateHook" shape="rect" coords="0,112,106,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:ae26f3ea0698aadf377b6a0f6bfb05ed6"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_hook.html#ae26f3ea0698aadf377b6a0f6bfb05ed6">initWithName:</a></td></tr>
<tr class="memdesc:ae26f3ea0698aadf377b6a0f6bfb05ed6"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用触发的事件名初始化。  <a href="interface_c_hook.html#ae26f3ea0698aadf377b6a0f6bfb05ed6">更多...</a><br /></td></tr>
<tr class="separator:ae26f3ea0698aadf377b6a0f6bfb05ed6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68bdd6642df797634f18b69a0c3d980d"><td class="memItemLeft" align="right" valign="top">(id)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_hook.html#a68bdd6642df797634f18b69a0c3d980d">apply:</a></td></tr>
<tr class="memdesc:a68bdd6642df797634f18b69a0c3d980d"><td class="mdescLeft">&#160;</td><td class="mdescRight">触发钩子，从系统里找到对应的插件进行数据处理，并返回处理后的数据。  <a href="interface_c_hook.html#a68bdd6642df797634f18b69a0c3d980d">更多...</a><br /></td></tr>
<tr class="separator:a68bdd6642df797634f18b69a0c3d980d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a5a1adf29537d1b603617a7d3680d5571"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_plugin_system.html">CPluginSystem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_hook.html#a5a1adf29537d1b603617a7d3680d5571">system</a></td></tr>
<tr class="separator:a5a1adf29537d1b603617a7d3680d5571"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a177cf5352474d26383f55f9f8c6c2bcf"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_hook.html#a177cf5352474d26383f55f9f8c6c2bcf">name</a></td></tr>
<tr class="separator:a177cf5352474d26383f55f9f8c6c2bcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>事件钩子。 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a68bdd6642df797634f18b69a0c3d980d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68bdd6642df797634f18b69a0c3d980d">&#9670;&nbsp;</a></span>apply:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (id) apply: </td>
          <td></td>
          <td class="paramtype">(id)&#160;</td>
          <td class="paramname"><em>data</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>触发钩子，从系统里找到对应的插件进行数据处理，并返回处理后的数据。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>指定触发事件时的数据。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回处理后的数据。 </dd></dl>

</div>
</div>
<a id="ae26f3ea0698aadf377b6a0f6bfb05ed6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae26f3ea0698aadf377b6a0f6bfb05ed6">&#9670;&nbsp;</a></span>initWithName:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithName: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>name</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用触发的事件名初始化。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>触发的事件名。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 <code><a class="el" href="interface_c_hook.html" title="事件钩子。">CHook</a></code> 实例。 </dd></dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="a177cf5352474d26383f55f9f8c6c2bcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a177cf5352474d26383f55f9f8c6c2bcf">&#9670;&nbsp;</a></span>name</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) name</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>钩子的事件名。 </p>

<p>在 <a class="el" href="interface_c_instantiate_hook.html#a4721c8c5f3806db688e8808fa3890287">CInstantiateHook</a> 内被实现.</p>

</div>
</div>
<a id="a5a1adf29537d1b603617a7d3680d5571"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a1adf29537d1b603617a7d3680d5571">&#9670;&nbsp;</a></span>system</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_plugin_system.html">CPluginSystem</a>*) system</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">weak</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>插件系统。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_c_hook_8h_source.html">CHook.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="interface_c_hook.html">CHook</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
